Skip to content

fix: replace acquisition with exception when import error#525

Merged
t-muser merged 1 commit intobayesian-optimization:masterfrom
phi-friday:fix-use-exception-module
Sep 30, 2024
Merged

fix: replace acquisition with exception when import error#525
t-muser merged 1 commit intobayesian-optimization:masterfrom
phi-friday:fix-use-exception-module

Conversation

@phi-friday
Copy link
Contributor

Importing errors from acquisition does not currently cause any problems at runtime.
However, it is done implicitly and may cause problems in the future.
Therefore, it is safer to explicitly import from exception.

@t-muser t-muser merged commit 4646cdf into bayesian-optimization:master Sep 30, 2024
@t-muser
Copy link
Member

t-muser commented Sep 30, 2024

Thanks for your contribution!

@phi-friday phi-friday deleted the fix-use-exception-module branch September 30, 2024 11:02
t-muser added a commit to t-muser/BayesianOptimization that referenced this pull request Oct 9, 2024
* fix: import error from exception module (bayesian-optimization#525)

* fix: replace list with sequence (bayesian-optimization#524)

* Fix min window type check (bayesian-optimization#523)

* fix: replace dict with Mapping

* fix: replace list with Sequence

* fix: add type hint

* fix: does not accept None

* Change docs badge (bayesian-optimization#527)

* fix: parameter, target_space

* fix: constraint, bayesian_optimization

* fix: ParamsType

---------

Co-authored-by: till-m <36440677+till-m@users.noreply.github.com>
t-muser added a commit that referenced this pull request Dec 27, 2024
* WIP

* Add ML example

* Save for merge

* Update

* Parameter types more (#13)

* fix: import error from exception module (#525)

* fix: replace list with sequence (#524)

* Fix min window type check (#523)

* fix: replace dict with Mapping

* fix: replace list with Sequence

* fix: add type hint

* fix: does not accept None

* Change docs badge (#527)

* fix: parameter, target_space

* fix: constraint, bayesian_optimization

* fix: ParamsType

---------

Co-authored-by: till-m <36440677+till-m@users.noreply.github.com>

* Use `.masks` not `._masks`

* User `super` to call kernel

* Update logging for parameters

* Disable SDR when non-float parameters are present

* Add demo script for typed optimization

* Update parameters, testing

* Remove sorting, gradient optimize only continuous params

* Go back to `wrap_kernel`

* Update code

* Remove `tqdm` dependency, use EI acq

* Add more text to typed optimization notebook.

* Save files while moving device

* Update with custom parameter type example

* Mention that parameters are not sorted

* Change array reg warning

* Update Citations, parameter notebook

---------

Co-authored-by: phi-friday <phi.friday@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants